package com.paishen.peiniwan.frame.http.entity;

import com.paishen.peiniwan.frame.http.HttpRespEntity;

/**
 * Created by peng on 2015/12/9.
 * 订单发布
 */
public class DateBase extends HttpRespEntity {
    public long id; // "id": "460"
    public String[] subject_type; //  "subject_type": ["看电影", "逛街", "旅行", "运动", "吃饭"],
    public String date_from; // "date_from": "2015-11-27"
    //  public String date_to; //  "date_to": "2015-11-27"
    public int sex; // "sex": "不限"
    public int status; // "status": "待应约"
    public float price; // ?? "price": 99.00
    public String address; // "address": "上海"
    public int book_count; // "book_count":0
    // public String note; // ?? "note": ""
    public long bid; // " "bid": "88"
    public Gift gift;

    @Override
    public boolean equals(Object o) {
        if (o instanceof DateBase) {
            DateBase other = (DateBase) o;
            if (id != 0 && other.id == id) {
                return true;
            }
        }
        return false;
    }
}
